package com.yonyou.brigade.basic_init.model;

import java.util.Date;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 租户全局配置
 * </p>
 *
 * @author kangfw5
 * @since 2019-08-14
 */
@TableName("bri_sys_config")
public class BriSysConfig extends Model<BriSysConfig> {

    private static final long serialVersionUID = 1L;

    /**
     * 租户ID
     */
    private String tenantId;
    /**
     * 组织PK
     */
    private String org;
    /**
     * 配置KEY值
     */
    private String code;
    /**
     * 配置VALUE值
     */
    private String value;
    private Date ts;


    public String getTenantId() {
        return tenantId;
    }

    public void setTenantId(String tenantId) {
        this.tenantId = tenantId;
    }

    public String getOrg() {
        return org;
    }

    public void setOrg(String org) {
        this.org = org;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public Date getTs() {
        return ts;
    }

    public void setTs(Date ts) {
        this.ts = ts;
    }

    public static final String TENANTID = "tenantId";

    public static final String ORG = "org";

    public static final String CODE = "code";

    public static final String VALUE = "value";

    public static final String TS = "ts";

    @Override
    protected Serializable pkVal() {
        return this.tenantId;
    }

    @Override
    public String toString() {
        return "BriSysConfig{" +
                "tenantId=" + tenantId +
                ", org=" + org +
                ", code=" + code +
                ", value=" + value +
                ", ts=" + ts +
                "}";
    }
}
